<html>
    <?php
        session_start();
        
        if($_REQUEST['loggedout'] == "true"){
            if(ISSET($_SESSION['user'])) {
                UNSET($_SESSION['user']);
            }
        }
        header("location:index.php");
        session_destroy();
    ?>
</html>

